/*
 * @Author: Jiraiya
 * @Date: 2020-04-07 19:12:02
 * @LastEditors: Jiraiya
 * @LastEditTime: 2020-04-07 19:37:06
 * @Description: 
 */
import History from './history';
import Hash from './hash';
import React from 'react';

class Router extends React.Component{

    constructor(props){
        super(props);
        const {mode, list} = props;
        if(mode === 'hash'){
            this.route = new Hash(list);
        }else{
            this.route = new History(list);
        }
    }
    
    render(){
        const {render} = this.props;
        return render;
    }
    
}

export default Router;